<template>
    <div>
        <el-select v-bind="$attrs">
            <el-option v-for="item in options" :key="item.id" :label="item.processName"
                :value="item.id" />
        </el-select>
    </div>
</template>
<script setup>
import { processesselect } from '@/api/operate/work-management/process-configuration';
const options = ref([])
import { usePageVariablesStoreHook } from "@/store/modules/pageVariables";
const usePageVariablesStore = usePageVariablesStoreHook();
const operateInfo = ref(usePageVariablesStore.getOperate());
processesselect({projectId: operateInfo.value.checkedProject}).then(res => {
    options.value = res.result.data
})

</script>
<style lang="scss" scoped></style>